package com.guanyong.dao;

import com.guanyong.model.FilmModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.HashMap;
import java.util.List;

/**
 * Created by mxk on 2017/6/1.
 */
public interface IFilmEvaluateDaoMapper {
    @Select("SELECT * FROM t_ad_filmevaluate  where f_id=#{fId}")
    @ResultMap("FilmEvaluateResultMap")
    FilmModel selectByPrimaryKey(String fId);

    @Update("update t_ad_filmevaluate set f_lookct=f_lookct+1 where f_id=#{id}")
    int updatelookct(@Param(value = "id") String id);

    @Update("update t_ad_filmevaluate set f_goodct=f_goodct+1 where f_id=#{id}")
    int updategoodct(@Param(value = "id") String id);

    @Update("update t_ad_filmevaluate set f_collectct=f_collectct+1 where f_id=#{id}")
    int updatecollectct(@Param(value = "id") String id);

    @Update("update t_ad_filmevaluate set f_commentct=f_commentct+1 where f_id=#{id}")
    int updatecommentct(@Param(value = "id") String id);

}
